/**
 * @file 3D/index.css
 * @description 3D设计页面特定样式
 * @copyright 版权所有 (c) 2025 UIED技术团队
 * @website https://fsuied.com
 * @license MIT
 * @version 1.1.0
 */

/* 3D页面特定样式 */
.threed-page {
  --primary-color: #6f42c1;
  --primary-hover: #5936a1;
  --primary-light: rgba(111, 66, 193, 0.1);
  --secondary-color: #20c997;
  --bg-gradient: linear-gradient(135deg, rgba(111, 66, 193, 0.1) 0%, rgba(32, 201, 151, 0.05) 100%);
}

/* 3D工具分类标签统一样式 */
.threed-page .tool-tag {
  padding: 0.125rem 0.5rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 500;
  border: 0.0625rem solid color-mix(in srgb, var(--border-color) 40%, transparent 60%);
  background: color-mix(in srgb, var(--background-light) 60%, transparent 40%);
  color: var(--text-quaternary, #9ca3af);
  opacity: 0.8;
  transition: all 0.2s ease;
}

.threed-page .tool-tag:hover {
  background: color-mix(in srgb, var(--primary-light) 60%, transparent 40%);
  color: color-mix(in srgb, var(--primary-color) 80%, transparent 20%);
  opacity: 1;
}

/* HeroBanner下方的Banner样式 */
.hero-bottom-banner {
  margin-top: -2rem; /* 稍微上移，与HeroBanner重叠一点 */
  z-index: 5;
  position: relative;
  padding: 0 2rem;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1rem;
}

/* 移动端响应式调整 */
@media (max-width: 768px) {
  .hero-bottom-banner {
    padding: 0 1rem;
    margin-top: -1rem;
  }
}

/* 全站搜索提示样式 */
.global-search-tip {
  text-align: center;
  padding: 0.75rem 1rem;
  margin: -1rem auto 1rem;
  max-width: 800px;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(5px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  font-size: 0.875rem;
  color: var(--text-secondary, #666);
}

.global-search-tip p {
  margin: 0;
}

.inline-search-link {
  background: none;
  border: none;
  color: var(--primary-color, #6f42c1);
  font-weight: 500;
  cursor: pointer;
  padding: 0 0.25rem;
  text-decoration: underline;
  font-size: 0.875rem;
}

.inline-search-link:hover {
  color: var(--primary-hover, #5936a1);
}

/* 移除暗黑模式适配后的清理 */

/* 移动端适配 */
@media (max-width: 768px) {
  .global-search-tip {
    font-size: 0.75rem;
    padding: 0.5rem;
    margin: -0.5rem auto 0.5rem;
  }
}

.threed-page .hero-section {
  background: var(--bg-gradient);
}

.threed-page .tool-card:hover {
  border-color: var(--primary-color);
  box-shadow: 0 8px 32px rgba(111, 66, 193, 0.15);
}

.threed-page .sidebar-nav-item.active {
  background-color: var(--primary-light);
  border-left-color: var(--primary-color);
}

.threed-page .sidebar-nav-item.active .nav-item-name {
  color: var(--primary-color);
}

.threed-page .search-bar:focus-within {
  border-color: var(--primary-color);
}

.threed-page .category-tag:hover {
  background-color: var(--primary-color);
  color: white;
}

.threed-page .hot-search-tag:hover {
  background-color: var(--primary-color);
  color: white;
}

/* 子分类容器样式 */
.threed-page .subcategories-container {
  margin-top: 1rem;
}

.threed-page .subcategory-section {
  margin-bottom: 2.5rem;
}

.threed-page .subcategory-section:last-child {
  margin-bottom: 0;
}

/* 子分类标题样式 */
.threed-page .subcategory-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary, #1a1a1a);
  margin: 0 0 1rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  padding-left: 0.75rem;
}

.threed-page .subcategory-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 0.25rem;
  height: 1rem;
  background: var(--primary-color);
  border-radius: 0.125rem;
}

.threed-page .subcategory-count {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-secondary, #6b7280);
  background: var(--bg-secondary, #f3f4f6);
  padding: 0.125rem 0.5rem;
  border-radius: 0.75rem;
  line-height: 1.2;
} 